import { request } from '@/network/request'

export function postlist (curr) {
    return request({
        url: '/forum/posts/getPostsList',
        method: 'post',
        params: {
           curr
        }
    })
};

export function postdelete (postsId) {
    return request({
        url: '/forum/posts/deletePostById',
        method: 'post',
        params: {
            postsId
        }
    })
};

export function getPostById (postsId) {
    return request({
        url: '/forum/posts/getPostById',
        method: 'post',
        params: {
            postsId
        }
    })
};
export function doEssence (postId) {
    return request({
        url: '/forum/posts/doEssence',
        method: 'post',
        params: {
            postId
        }
    })
};


